<p/>
<div id="project_show">
  
  <table class="listing">
    <tr>
      <th><strong><%= @project.name %></strong></th>
      
    </tr>
    <tr class="even">
      
      <td><%= @project.owner %>发布于 
        
 <%= @project.created_at.strftime("%Y-%m-%d") %>
 
        此实验积分:<%= @point %>
        <hr/>
        <div id="summy">   
          <%= render :partial =>"show_point" %>
        </div>
        
        
      </td>
    </tr>
  </table>
  <br/>
  <p>
    <%= link_to 'Back', projects_path %> |
    <%= link_to 'Edit', edit_project_path(@project) %> |
    <%= link_to 'Delete', project_path(@project),:confirm => "Are you sure you want to delete?" ,:method => :delete %> 
                
  </p>
</div>
<div class="heading2">
  Users List
</div>
<div id="users2_list">
  
<%= render :partial => "userlist", :object => @users %>

</div>
<br/>
<div id="project_add_a_user">
  <%#= link_to "Add a user","#",:class=>"link_as_button" %>
  <input type="button" value="Add users" onclick="$('user_search_table').toggle();$('search_user_result').toggle();" class="small_btn"/>
  <input type="button" value="Delete all users" onclick="<%= remote_function(:url => {:action => 'delete_allusers',:id =>@project.id },
:confirm => "Are you sure you want to delete?",:before => "Element.show('spinner4');",:complete => "Element.hide('spinner4');") %>" class="small_btn"/>
	<img style="display: none;" src="/images/spinner.gif" id="spinner4"/>
</div>
<div id="user_search_table" style="display:none;">
<%# form_tag project_path(@project), :method => 'get' do %>
<% form_remote_tag :url => search_users_projects_path ,:html =>{:id=>'search_id'},
  :before => "Element.show('spinner');",
  :complete => "Element.hide('spinner');" do %>
  <%= text_field_tag :search,params[:search],:size => 80 %>
  <%#= text_field_with_auto_complete :user, "english_name",{}, {:method => :get,:url =>users_path,:skip_style => true} %>
  <%#= submit_tag "search",:name =>nil %>
  <%= hidden_field_tag "project_id",params[:id] %>                    
  <input type="image" id="submit_search" name="submit_search" src="/images/search.gif"/>
  <img id="spinner" src="/images/spinner.gif" style="display:none"/>
<% end %>
           

  <span style="font-size:11px">输入员工号,姓名,姓名首字母,分机号,Email等查询.多项查询时各项用分号隔开.</span>
  <div id="notice2" style="display:none"><%= flash[:notice2] %></div>
</div>

<br/>
<div id="search_user_result"  style="display:none;">
  
</div>
<br/><br/>

